package com.studymaster.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.studymaster.dao.SmallPaperDao;
import com.studymaster.domain.SmallPaper;
import com.studymaster.service.SmallPaperService;


@Service
public class SmallPaperServiceImpl implements SmallPaperService{

	@Autowired
	private SmallPaperDao mSmallPaperDao;
	
	@Override
	public List<SmallPaper> getPaperByReceiverId(String receiverid, String date) {
		// TODO Auto-generated method stub
		return mSmallPaperDao.getPaperByReceiverId(receiverid, date);
	}

	@Override
	public boolean insertSmallPaper(SmallPaper sp) {
		// TODO Auto-generated method stub
		return mSmallPaperDao.insertSmallPaper(sp);
	}

	@Override
	public List<SmallPaper> getPapersFromDB(String senderid, String receiverid,
			String date) {
		// TODO Auto-generated method stub
		return mSmallPaperDao.getPapersFromDB(senderid, receiverid, date);
	}

}
